﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Lottery.MediaData.UI.Control {
    public partial class CombineLine : UserControl {
        public CombineLine() {
            InitializeComponent();
        }

        private int from1 = -1, to1 = -1, from2 = -1, to2 = -1;

        public int From1 {
            get { return from1; }
            set {
                from1 = value;
                editFrom1.Text = from1 == -1 ? string.Empty : from1.ToString();
            }
        }

        public int To1 {
            get { return to1; }
            set {
                to1 = value;
                editTo1.Text = to1 == -1 ? string.Empty : to1.ToString();
            }
        }

        public int From2 {
            get { return from2; }
            set {
                from2 = value;
                editFrom2.Text = from2 == -1 ? string.Empty : from2.ToString();
            }
        }

        public int To2 {
            get { return to2; }
            set {
                to2 = value;
                editTo2.Text = to2 == -1 ? string.Empty : to2.ToString();
            }
        }

        public void ClearData() {
            From1 = To1 = From2 = To2 = -1;
        }
    }
}
